﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//using System.Windows.Input;

//namespace Hockey.Shared
//{
//    /// <summary>
//    /// Automatic Delegate Command
//    /// </summary>
//    public class AutoDelegateCommand: ICommand
//    {
//        public ICommand WrappedCommand { get; private set; }

//        public AutoDelegateCommand(Action executeMethod)
//        {
//            WrappedCommand = new DelegateCommand(executeMethod);
//        }
        
//        public AutoDelegateCommand(Action executeMethod, Func<bool> canExecuteMethod)
//        {
//            WrappedCommand = new DelegateCommand(executeMethod, canExecuteMethod);
//        }
       
//        public AutoDelegateCommand(ICommand wrappedCommand)
//        {
//            if (wrappedCommand == null)
//            {
//                throw new ArgumentNullException("wrappedCommand");
//            }

//            WrappedCommand = wrappedCommand;
//        }

//        public void Execute(object parameter)
//        {
//            WrappedCommand.Execute(parameter);
//        }

//        public bool CanExecute(object parameter)
//        {
//            return WrappedCommand.CanExecute(parameter);
//        }

//        public event EventHandler CanExecuteChanged
//        {
//            add { CommandManager.RequerySuggested += value; }
//            remove { CommandManager.RequerySuggested -= value; }
//        }
//    }
//}
